﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pibby.Core.Tests.Stubs
{
	public static class PodcastFactory
	{
		public static PodcastCollection GeneratePodcasts(string baseName, int howMany)
		{
			PodcastCollection collection = new PodcastCollection();

			for (int i = 0; i < howMany; ++i)
			{
				string name = string.Format("{0}{1}", baseName, i + 1);
				collection.Add(new Podcast(name, new Uri(string.Format ("http://{0}.com", name))));
			}

			return collection;
		}
	}
}
